/*! _layout-selector.scss | Vuero | Css ninja 2020-2021 */

/*
    1. Layout Selector
    2. Layout Selector Dark mode
*/

/* ==========================================================================
1. Layout Selector
========================================================================== */

.layout-selector {
  min-height: 340px;
  max-height: 340px;
  overflow-y: auto;

  .layout-item {
    position: relative;
    display: block;
    text-align: center;
    cursor: pointer;

    &:hover {
      img {
        filter: grayscale(0);
        opacity: 1;
      }
    }

    &.is-active {
      pointer-events: none;

      img {
        filter: grayscale(0);
        opacity: 1;
      }

      .indicator {
        opacity: 1;
      }
    }

    .indicator {
      position: absolute;
      top: 0;
      right: 36px;
      background: var(--primary);
      border: 4px solid var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      height: 32px;
      width: 32px;
      border-radius: var(--radius-rounded);
      opacity: 0;
      transition: opacity 0.3s;
      pointer-events: none;
      color: var(--white);

      svg,
      .iconify {
        color: var(--white);
        height: 13px;
        width: 13px;

        * {
          stroke-width: 3px;
        }
      }
    }

    img {
      max-width: 150px;
      margin: 0 auto;
      filter: grayscale(1);
      opacity: 0.6;
      transition: all 0.3s;
    }

    h3 {
      font-family: var(--font-alt);
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--dark-text);
    }

    p {
      font-size: 0.9rem;
    }
  }
}

/* ==========================================================================
1. Layout Selector Dark Mode
========================================================================== */

.is-dark {
  .layout-selector {
    .layout-item {
      &.is-active {
        .indicator {
          border-color: var(--dark-sidebar-light-6) !important;
        }
      }

      h3 {
        color: var(--dark-dark-text);
      }
    }
  }
}
